#include "drivers.h"
#include "rtos.h"

#include "tasks.h"



/**
 * @brief  print a string to the usart1 port to indicate that 
 *  	   key task is running, it's just a prototype for this
 *  	   time.
 *
 * @param   NULL
 * @return  none
 * 
 */

void Task_Key(void *pvParameters)
{
	xSemaphoreTake(KeyTask_Ball,0);
	while(1)
	{
		xSemaphoreTake(KeyTask_Ball,portMAX_DELAY);
		vTaskDelay(30/portTICK_RATE_MS);
		if(GPIO_ReadInputDataBit(GPIOA,GPIO_Pin_0)==1)
		{
			uprintf("Key Task Running\r\n");

		}


	}
}
